package com.carl.zlds.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carl.zlds.dao.sqlprovider.CustomerServiceSqlProvider;
import com.carl.zlds.model.CustomerService;
import com.carl.zlds.pojo.dto.CustomerServiceSearchDTO;
import com.carl.zlds.pojo.vo.CustomerServiceVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * @author carl
 */
public interface CustomerServiceMapper extends BaseMapper<CustomerService> {
    @SelectProvider(type = CustomerServiceSqlProvider.class, method = "getCustomerServiceList")
    List<CustomerServiceVO> getCustomerServiceList(@Param("dto") CustomerServiceSearchDTO dto, @Param("limitSql") String limitSql);

    @SelectProvider(type = CustomerServiceSqlProvider.class, method = "getCustomerServiceList")
    Integer countCustomerServiceList(@Param("dto") CustomerServiceSearchDTO dto, @Param("limitSql") String limitSql);
}
